<?php

require 'conn.php';

require 'config.php';

require 'inc/function.php';
 
 
$ye='about';

if ($id==0) $id=RsField('select a_id from '.$language.'_aboutus order by a_order,a_id limit 0,1');

if ($id!=''){

$query=mysql_query('select * from '.$language.'_aboutus where a_id='.$id,$conn);

if (mysql_num_rows($query)>0){

	$row=mysql_fetch_array($query);

	$a_class=$row['a_class'];

	$a_name=$row['a_name'];

	$a_content=$row['a_content'];

}

}



?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=1200,initial-scale=0.3,maximum-scale=1.0,user-scalable=yes" />
<?php 
$query=mysql_query('select * from '.$language.'_keywords where k_id=1',$conn);
$row=mysql_fetch_array($query);

$k_name=$row['k_name'];

$k_keyword=$row['k_keyword'];

$k_description=$row['k_description'];
?>
<title><?php echo $a_name."-". $k_name?></title>
<meta name="keywords" content="<?php echo $k_keyword?>" />
<meta name="description" content="<?php echo $k_description?>" />

<script type="text/javascript" src="js/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/global.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script type="text/javascript" src="js/main.js"></script>
    <link rel="stylesheet" type="text/css" href="css/owl.carousel.min.css">
    <script type="text/javascript" src="js/owl.carousel.js"></script>
    <script type="text/javascript" src="inc/function.js"></script>
      
     <script>
         $(function () {
             $(".banner").owlCarousel({ items: 1 })
             $(".news_owl").owlCarousel({ items: 3, margin: 10, dots: false, nav: true, navText: ["<span></span>", "<span></span>"],loop:true })
             $(".toggle_list .list").hide().eq(0).show();
             $(".tit_toggle span").hover(function () {
                 if ($(this).hasClass("on")) { }
                 else {
                     $(this).addClass("on").siblings().removeClass("on")
                     $(".toggle_list .list").stop().hide().eq($(this).index()).stop().fadeIn();
                 }
             }, function () { })

         })
     </script>
<link rel="stylesheet" href="js/lightbox.css">
 <script src="js/lightbox.js"></script>
 
 </head>
<body>
<!-- haeder S-->
<?php require 'header.php'?>
 
<div id="ban" style="background:url(<?php echo RsField('select b_image from '.$language.'_banner where b_id=1')?>) center no-repeat;"></div>

        <div id="center">
        	<div class="main clear_both">
             	<div class="left fl">
	    <div class="about">关于我们   </div>
    <div class="list">
        <ul>
        	          
                 <?php
                  $str='';

		$query=mysql_query('select a_id,a_name from '.$language.'_aboutus order by a_order asc');

		if (mysql_num_rows($query)>0){

		while($row=mysql_fetch_array($query)){
			$str.=' <li>';
			if($row['a_id']==$id){
               $str.=' <div class="senior on">';
			}
			else
			{
				               $str.=' <div class="senior">';

				}
			   $str.='<a href="aboutus.php?id='.$row['a_id'].'">'.$row['a_name'].'</a> </div></li> ';
		}

		}
	 
		
 
				 echo $str;
				  ?>
            
              
                    </ul>
    </div>
 
   

</div> 
            	<div class="right fr clear_both">
                <div class="mbx fl">
                <div class="mbtitle"><?php echo $a_name?></div>
                <div class="mbtitle2">当前位置：<a href="index.php">首页</a>&gt;<a href="aboutus.php">关于我们</a>&gt;<?php echo $a_name?></div>
  
    </div> 
                    <div class="clear"></div>
                    <div class="neiwrap">
                            <div class="description">
                                
 <?php

			$str='';
  
			if ($a_class!='' && $a_class<98){

				$page_size=8;

				$page_sql='select * from '.$language.'_about_image where a_class='.$a_class.' order by a_order,a_id';

				$page_count=GetPageCount($page_size,$page_sql);

				if ($page>$page_count) $page=$page_count;

				$page_number=($page-1)*$page_size;

				$query=mysql_query($page_sql." limit $page_number,$page_size",$conn);

				if (mysql_num_rows($query)==0){

					$str.=NoData($language);

				}

				else{
					$k=1;

					$str.='<div id="about_image_blk">';

					$str.='<div id="about_image">';

					while($row=mysql_fetch_array($query)){
						if($k % 4==0)
						{$str.='<dl style="margin-right:0px;">';}
						
								else
								{$str.='<dl>';
									}
						$str.='<dt><a href="'.$row['a_image'].'" class="example-image-link"   data-lightbox="example-1" rel="gallery-module-0" title="'.$row['a_name'].'" ><img src="'.$row['a_image'].'" alt="'.$row['a_name'].'" /></a></dt>';

						$str.='<dd>'.$row['a_name'].'</dd>';

						$str.='</dl>';
						
						$k++;

					}

 
					$str.='</div>';

					$str.='</div>';

					if ($page_count>1) $str.='<div id="products_page">'.ShowPage3($page,$page_count,$language).'</div>';

				}

            }

			else {

				$str.='<div id="showtext">'.$a_content.'</div>';

			}

            echo $str;

			?>
     						           
                                
                            </div>
                    </div>
                </div>   
            </div>
        </div>
        
        
<?php require 'footer.php'?>


</body>
</html>

